package com.rustic.server.dto.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;

/**
 *  @author xy
 */
@Data
public class UpdatePwdDTO {

    @Min(value = 1, message = "用户ID不能为空")
    @ApiModelProperty(value = "用户ID", dataType = "int")
    private Integer id;

    @NotEmpty(message = "密码不能为空")
    @ApiModelProperty(value = "密码", dataType = "String")
    private String password;

}
